import request from '@/utils/request'
/**
 * 活动列表
 * @param {} data 
 * @returns 
 */
export const getActivityApi = (data) => {
    return request({
        
        url: '/party/active/manage/list',
        method: 'post',
        data
    })
}
/**
 * 新增活动
 * @param {} data 
 * @returns 
 */
export const addActivityApi = (data) => {
    return request({
        url: '/party/active/manage',
        method: 'post',
        data
    })
}
/**
 * 修改活动
 * @param {} data 
 * @returns 
 */
export const putActivityApi = (data) => {
    return request({
        url: '/party/active/manage',
        method: 'put',
        data
    })
}
/**
 * 删除活动
 * @param {} data 
 * @returns 
 */
export const delActivityApi = (data) => {
    return request({
        url: '/party/active/manage/batchDelete',
        method: 'post',
        data:[data]
    })
}